package com.sprinboot_vue.blog_springboot.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author Thomas
 * @version 1.0
 * @date 2021/11/20 21:23
 */
//对应的数据库的博文实体
@Entity
@Data
//指明对应的表名
@Table(name = "blog")
public class Blog {
    @Id
    private long id;
    //2020-12-23 10:23:45
    private String time_;
    private String title;
    private String content_html;
    private String content_markdown;
    //原创、转载、翻译
    private String resource;
    //博文的标签(Java、Mysql、Redis、Linux)
    private String tag_;
    //博文类型(计算机、医学、美文)
    private String type_;
    //博文的简述
    private String desc_;
    //谁发表的博文
    private String user_id;
    //博文浏览量
    private int view_;
}
